html, body {
    font-family: Arial;
    width: 100%;
    height: 100%;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
.wrapper {
    display: flex;
    flex-flow: row wrap;
    align-items: flex-start;
    justify-content: center;
}
[class ^= "col"] {
    display: inline-block;
    width: 300px;
    margin: 8px;
}
.photo-wrapper {
    padding: 5px;
    box-shadow: 0px 0px 5px #999;
    border-radius: 5px;
    margin: 10px 0;
}
.preview {
    width: 290px;
}
.mask-wrapper {
    position: relative;
    overflow: hidden;
}
.mask {
    position: absolute;
    width: 100%;
    height: 99%;
    background-color: rgba(0, 0, 0, .4);
}
.title {
    position: absolute;
    width: 100%;
    color: #fff;
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.hidden > .trans{
    opacity: 0;
}
.trans {
    opacity: 1;
    transition: opacity 0.5s ease;
    cursor: pointer;
}
.large {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .8);
    z-index: 999;
}
.close {
    float: right;
    top: 0;
    left: 0;
    width: 50px;
    line-height: 50px;
    text-align: center;
    background-color: rgba(0, 0, 0, .4);
    color: #fff;
    border-radius: 50%;
    font-size: 20px;
    transition: all .5s ease-in-out;
}
.close:hover {
    cursor: pointer;
    background-color: rgba(255, 255, 255, .8);
    color: #000;
}
.waiting-wrapper {
    margin: 20px 0;
    text-align: center;
}
.waiting-wrapper.middle {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}
.waiting {
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 50%;
}
@keyframes redAnimation {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(120%);
    }
    100% {
        transform: translateX(0);
    }

}
@keyframes blueAnimation {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-120%);
    }
    100% {
        transform: translateX(0);
    }

}
.red {
    background-color: rgb(244, 32, 115);
    animation: redAnimation 1s linear infinite;
}
.blue {
    background-color: rgb(53, 197, 220);
    animation: blueAnimation 1s linear infinite;
}